/**
 * 
 */
package com.quiz.activity;

import com.scoreloop.client.android.ui.ScoreloopManagerSingleton;

import android.app.Application;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;


/**
 *
 * @author Brian Boyle
 * Apr 21, 2012
 */
public class QuizApplication extends Application {


    /**
     * {@inheritDoc}
     */
    @Override
    public void onCreate() {
        super.onCreate();
        ScoreloopManagerSingleton.init(this, "SPaU0f0BiFFOOnoGRc9EqDKNY4m8wp3bipLjAz7uBuh8f9jZnjlsow==");
        PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onTerminate() {
        super.onTerminate();
        ScoreloopManagerSingleton.destroy();
    }
}
